<template>
  <div id="header">
    <div class="logo" title="状态栏缩放切换" @click="updateCollapse">
      <h2>甘肃人文在线展览平台后台管理系统</h2>
    </div>
    <div class="user">
      <User></User>
    </div>
  </div>
</template>
 
<script>
import User from "@/components/Header/User"
import {mapMutations} from "vuex"
export default {
  name: 'Header',
  components:{
    User,
  },
  methods:{
    ...mapMutations(['updateCollapse'])
  }
}
</script>

<style scoped lang='less'>
#header{
  width: 100%;
  height: 60px;
  background-color: #304155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  .logo{
    width: 200px;
    color: #fff;
    height: 60px;
    line-height: 60px;
    text-align: center;
    box-sizing: border-box;
    border-bottom: 1px solid rgb(226, 223, 223);
    user-select: none;
    cursor: pointer;
  }
}
</style>